package com.qingcheng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.service.goods.StockBackService;
import org.springframework.stereotype.Component;

@Component
public class SkuTask {

    @Reference
    private StockBackService stockBackService;

    //每间隔一个小时处理未回滚商品库存
//    @Scheduled(cron = "0 0 0/1 * * ?")
////    public void skuBackTimeOutLogic(){
////        System.out.println("开始执行回滚");
////        stockBackService.doBack();
////        System.out.println("执行回滚结束");
////    }



}
